package com.ddd.demo.domain.enu;

public enum CmdRunFlagEnum {

    /**
     * 安装
     */
    ONE(1),
    /**
     * 停止
     */
    TWO(2),
    /**
     * 重启
     */
    THREE(3);

    private int value;

    private CmdRunFlagEnum(int value)
    {
        this.value = value;
    }

    public int value()
    {
        return this.value;
    }

    public static String name(int value)
    {
        switch (value)
        {
            case 1:
                return "安装";
            case 2:
                return "停止";
            case 3:
                return "重启";
            default:
                return "";
        }
    }

}
